From: Jonathan Lebon Date: Wed, 20 Sep 2017 17:06:41 +0000 (+0000) Subject: tests: allow specifying tmpdir X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~31^2~44 X-Git-Url: https://dgit.raspbian.org/%22http://www.example.com/cgi/%22/%22http:/www.example.com/cgi/%22?a=commitdiff_plain;h=335f914d48064fe4e3abbbb3bf8b3e8605f262f9;p=ostree.git tests: allow specifying tmpdir Allow developers to override the default /var/tmp dir, which e.g. might be on overlayfs and thus produces reduced coverage. Closes: #1207 Approved by: cgwalters --- diff --git a/buildutil/tap-test b/buildutil/tap-test index ac729d8d..e35f2a4a 100755 --- a/buildutil/tap-test +++ b/buildutil/tap-test @@ -8,7 +8,8 @@ srcd=$(cd $(dirname $1) && pwd) bn=$(basename $1) -tempdir=$(mktemp -d /var/tmp/tap-test.XXXXXX) +TEST_TMPDIR=${TEST_TMPDIR:-/var/tmp} +tempdir=$(mktemp -d $TEST_TMPDIR/tap-test.XXXXXX) touch ${tempdir}/.testtmp function cleanup () { if test -f ${tempdir}/.testtmp; then